package com.zsr.mapper;

import com.zsr.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author zsr
 * @Desc
 * @Date 2021/5/25 20:52
 */
@Repository
@Mapper
public interface UserMapper {

    List<User> queryUserList();

    User queryUserById(int id);

    User queryUserByName(String username);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(User user);

}
